<%@ page contentType="text/html;charset=UTF-8" %>
<%@include file="../../common/operation_forbid.jsp" %>
<!-- 车区 -->
<div id="carareaDiv" class="hide">
<form id="carareaForm" method="POST" onsubmit="return false;" >
	<table cellspacing="0" cellpadding="0" border="0" class="customTable">
		<tbody>
			<input type="hidden" name="id" >
			<tr class="FormData">
				<td class="CaptionTD">父节点：</td>
				<td class="DataTD">&nbsp;
					<label id="parentName" name="parentName"></label>
				</td>
			</tr>
			<tr class="FormData">
				<td class="CaptionTD"><font color="red">*</font>车区名称：</td>
				<td class="DataTD">&nbsp;
					<input type="text" jyValidate="required" maxlength="50" name="buildingName" class="FormElement ui-widget-content ui-corner-all">
				</td>
				<td class="CaptionTD"><font color="red">*</font>车区编号：</td>
				<td class="DataTD">&nbsp;
					<input type="text" jyValidate="required" maxlength="50" name="buildingCode" class="FormElement ui-widget-content ui-corner-all">
				</td>
			</tr>
			
			<tr>
				<td class="CaptionTD">大业态类型：</td>
				<td class="DataTD">&nbsp;
					<select id="codeType_03" jyValidate="required" class="FormElement ui-widget-content ui-corner-all"></select>
				</td>
				<td class="CaptionTD">小业态类型：</td>
				<td class="DataTD">&nbsp;
					<select id="codeValue_car" name="industMark" jyValidate="required" class="FormElement ui-widget-content ui-corner-all"></select>
				</td>
			</tr>
			
			<!-- <tr>
			<td class="CaptionTD">自持面积：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="selfSustaiAcreag" jyValidate="num" class="FormElement ui-widget-content ui-corner-all"/>
				</td>
			</tr> -->
			
			<!-- <tr>
				<td class="CaptionTD">栋数：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="numberOfBuildi" jyValidate="num" class="FormElement ui-widget-content ui-corner-all"/>
				</td>
			
				<td class="CaptionTD">层数：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="numberLayers" jyValidate="num" class="FormElement ui-widget-content ui-corner-all"/>
				</td>
			</tr> -->
			
			<tr>
				<!-- <td class="CaptionTD">总户数：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="totalHouse" jyValidate="num" class="FormElement ui-widget-content ui-corner-all" />
				</td> -->
				<td class="CaptionTD">可售车位：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="salableAcreag" jyValidate="num" class="FormElement ui-widget-content ui-corner-all" />
				</td>
				<td class="CaptionTD">自持货值：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="targetValue" jyValidate="num" class="FormElement ui-widget-content ui-corner-all" />
				</td>
				
			</tr>
			
			
			<!-- <tr>
				
				<td class="CaptionTD">地上可售面积：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="groundSalesAcreag" jyValidate="num" class="FormElement ui-widget-content ui-corner-all" />
				</td>
				<td class="CaptionTD">地下可售面积：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="undergSalesAcreag" jyValidate="num" class="FormElement ui-widget-content ui-corner-all" />
				</td>
				
			</tr> -->
			
			
			
			
			<tr>
				<td class="CaptionTD" style="color: red;font-size: 14px;">拓展版：</td>
			</tr>
			<tr>
				<td class="CaptionTD">生效时间：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="versionDate[0]" id="versionDate_0" onClick="WdatePicker()"  class="FormElement ui-widget-content ui-corner-all" />
				</td>
				<td class="CaptionTD">目标销售均价：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="versionValue[0]" id="versionValue_0" jyValidate="num" class="FormElement ui-widget-content ui-corner-all"/>
				</td>
			</tr>
			
			<tr>
				<td class="CaptionTD" style="color: red;font-size: 14px;">启动会版：</td>
			</tr>
			<tr>
				<td class="CaptionTD">生效时间：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="versionDate[1]" id="versionDate_1" onClick="WdatePicker()" class="FormElement ui-widget-content ui-corner-all" />
				</td>
				<td class="CaptionTD">目标销售均价：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="versionValue[1]" id="versionValue_1" jyValidate="num" class="FormElement ui-widget-content ui-corner-all"/>
				</td>
			</tr>
			
			<tr>
				<td class="CaptionTD" style="color: red;font-size: 14px;">方案版：</td>
			</tr>
			<tr>
				<td class="CaptionTD">生效时间：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="versionDate[2]" id="versionDate_2" onClick="WdatePicker()" class="FormElement ui-widget-content ui-corner-all" />
				</td>
				<td class="CaptionTD">目标销售均价：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="versionValue[2]" id="versionValue_2" jyValidate="num" class="FormElement ui-widget-content ui-corner-all"/>
				</td>
			</tr>
			
			<tr>
				<td class="CaptionTD" style="color: red;font-size: 14px;">施工图版：</td>
			</tr>
			<tr>
				<td class="CaptionTD">生效时间：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="versionDate[3]" id="versionDate_3" onClick="WdatePicker()" class="FormElement ui-widget-content ui-corner-all" />
				</td>
				<td class="CaptionTD">目标销售均价：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="versionValue[3]" id="versionValue_3" jyValidate="num" class="FormElement ui-widget-content ui-corner-all"/>
				</td>
			</tr>
			
			
			<tr>
				<td class="CaptionTD" style="color: red;font-size: 14px;">结算版：</td>
			</tr>
			<tr>
				<td class="CaptionTD">生效时间：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="versionDate[4]" id="versionDate_4" onClick="WdatePicker()" class="FormElement ui-widget-content ui-corner-all" />
				</td>
				<td class="CaptionTD">目标销售均价：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="versionValue[4]" id="versionValue_4" jyValidate="num" class="FormElement ui-widget-content ui-corner-all"/>
				</td>
			</tr>
			
			<tr>
				<td class="CaptionTD" style="color: red;font-size: 14px;">经营计划版：</td>
			</tr>
			<tr>
				<td class="CaptionTD">生效时间：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="versionDate[5]" id="versionDate_5" onClick="WdatePicker()" class="FormElement ui-widget-content ui-corner-all" />
				</td>
				<td class="CaptionTD">目标销售均价：</td>
				<td class="DataTD">&nbsp;
					<input type="text" name="versionValue[5]" id="versionValue_5" jyValidate="num" class="FormElement ui-widget-content ui-corner-all"/>
				</td>
			</tr>
			
			<tr class="FormData">
				<td class="CaptionTD">备注：</td>
				<td class="DataTD" colspan="3">&nbsp;
				<textarea rows="2" cols="10" maxlength="100" name="remark" multiline="true" class="FormElement ui-widget-content ui-corner-all isSelect147" style="width: 466px;"></textarea>
				</td>
			</tr>
		</tbody>
	</table>
</form>

<script type="text/javascript">
$(function(){
	var url = "${contextPath}/system/baseCodeType/findBusList"
	var cus_html = "<option value=''>请选择</option>";
	$.ajax({
		   type: "post",
           url: url,
           data: {},
           dataType: "json",
           success: function(data){
           		if(data!=null&&data.length>0){
           			for(var i=0;i<data.length;i++){
           				cus_html+="<option value ='"+data[i].id+"'>"+data[i].typeName+"</option>";
           			}
           		}
           		$("#codeType_03").html(cus_html);
           }
	});
	$("#codeType_03").change(function(){
		var value_html = "<option value=''>请选择</option>";
		var c_url = "${contextPath}/system/baseCodeType/findBaseCodeValue";
		var typeId =  $(this).val(); 
		if(typeId==null||typeId==""){
			$("#codeValue_car").html("");
		}else{
			$.ajax({
				   type: "post",
		           url: c_url,
		           data: {typeId:typeId},
		           dataType: "json",
		           success: function(data){
		           		if(data!=null&&data.length>0){
		           			for(var i=0;i<data.length;i++){
		           				value_html+="<option value ='"+data[i].id+"'>"+data[i].codeName+"</option>";
		           			}
		           		}
		           		$("#codeValue_car").html(value_html);
		           }
			});
		}
	});
});
</script>

</div>
